package com.hsp.Demo_11_innerclass;

public class Outter05 {
    public static void main(String[] args) {

        f1(()->{
            System.out.println("还能这么写？？");
        });

        f1(new AA05(){
            @Override
            public void m1() {
                System.out.println("还可以这样写，真奇怪。");
            }
        });
    }

    public static void f1(AA05 aa){
        aa.m1();
    }
}

interface AA05{
    void m1();
}
